package com.yx.pc.api.service.impl;

import com.yx.common.utils.Query;
import com.yx.pc.api.service.PcTdOnlinePayLogService;
import com.yx.system.dao.TdOnlinePayLogMapper;
import com.yx.system.entity.TdOnlinePayLog;
import com.yx.system.service.TdOnlinePayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class PcTdOnlinePayLogServiceImpl implements PcTdOnlinePayLogService {

    @Autowired
    private TdOnlinePayLogMapper tdOnlinePayLogMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdOnlinePayLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdOnlinePayLog record) {
        return tdOnlinePayLogMapper.insert(record);
    }

    @Override
    public int insertSelective(TdOnlinePayLog record) {
        return tdOnlinePayLogMapper.insertSelective(record);
    }

    @Override
    public TdOnlinePayLog selectByPrimaryKey(Integer id) {
        return tdOnlinePayLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdOnlinePayLog record) {
        return tdOnlinePayLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdOnlinePayLog record) {
        return tdOnlinePayLogMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdOnlinePayLog> queryList(Map<String, Object> map) {
        return tdOnlinePayLogMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdOnlinePayLogMapper.queryTotal(map);
    }

    @Override
    public TdOnlinePayLog queryByBillNo(String billNo) {
        return tdOnlinePayLogMapper.queryByBillNo(billNo);
    }

    @Override
    public List<TdOnlinePayLog> queryList1(Query query) {
        return tdOnlinePayLogMapper.queryList1(query);
    }

    @Override
    public int queryTotal1(Query query) {
        return tdOnlinePayLogMapper.queryTotal1(query);
    }
}
